<script type="text/javascript" charset="utf-8">
  if (Cookies.get('second_prev')) {
    bind_method(document, "keydown", backWithPrev(Cookies.get('second_prev')));
    Cookies.remove('second_prev')
  } else {
    bind_method(document, "keydown", backWithPrev())
  }
</script>

<div id="main">

  <%= render 'shared/small_video' %>

  <%= render 'shared/photo', item: @playlist, favs: @fav_playlists %>

  <%= render 'shared/tree', items: @playlist.songs %>
</div>
